package com.efrei.schoolmanager.model.hibernate.dao;

import java.util.List;

import org.hibernate.Session;

import com.efrei.schoolmanager.model.dao.HibernateDAO;
import com.efrei.schoolmanager.model.obj.Etablissement;

/**
 * DAO pour les etablissements avec hibernate
 */
public class EtablissementDAO extends HibernateDAO<Etablissement> {

	public EtablissementDAO(Session session) {
		super(session, Etablissement.class);
	}

	public List<Etablissement> getEtablissements() {
		return content("FROM Etablissement ORDER BY nom");
	}
}
